package com.itheima.executorService;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ExecutorServiceDemo3 {

    public static void main(String[] args) {
        // 创建线程池对象方法二
        ExecutorService es = Executors.newFixedThreadPool(3);
        for (int i = 0; i < 10; i++) {
            es.submit(new MyRunable());
        }
    }
}
